package com.itheima.app;

import com.itheima.config.SpringConfig7;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App7 {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig7.class);
        String[] name = context.getBeanDefinitionNames();
        for(String beanName : name){
            System.out.println(beanName);
        }
    }
}
